package com.david.auth.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体表基础类
 */
@ApiModel(description = "关系实体基础类")
public class BaseEntity extends RelationBaseEntity implements Serializable {
    /** 更新时间 */
    @ApiModelProperty(notes = "更新时间",example = "2022-03-28 :09:30:00", position = -96)
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private Date update_time;
    /** 更新者 */
    @ApiModelProperty(notes = "更新者", example = "username", position = -95)
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private String update_by;
    /** 版本号 */
    @Version
    @ApiModelProperty(notes = "版本号", example = "0", position = -94)
    @TableField(fill= FieldFill.INSERT)
    private Integer version;
    /** 逻辑删除 */
    @ApiModelProperty(notes = "逻辑删除标记", example = "false", position = -93)
    @TableField(fill= FieldFill.INSERT)
    private Boolean del_flag;

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public String getUpdate_by() {
        return update_by;
    }

    public void setUpdate_by(String update_by) {
        this.update_by = update_by;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Boolean getDel_flag() {
        return del_flag;
    }

    public void setDel_flag(Boolean del_flag) {
        this.del_flag = del_flag;
    }
}
